<?php
include_once ('bd/ModeloBD.php');

class ModeloTipodi extends ModeloBD {

    private $tipodicodsx;
    private $tipodinombre;
	private $tipodionservacion;
    private $tipodiestado;

    public function __construct($tipodicodsx = "", $tipodinombre = "", $tipodionservacion = "", $tipodiestado = "") {
        $this->_oBaseDatos = CBaseDatos::get_instancia();
        $this->_oBaseDatos->conectar();
        $this->_sTabla = "tipodi";
        $this->tipodicodsx = $tipodicodsx;
        $this->tipodinombre = $tipodinombre;
		$this->tipodionservacion = $tipodionservacion;
		$this-> tipodiestado= $tipodiestado;
    }

    public function listaTipodis() {
        $arTipodi = null;
        $sSQL = "
            SELECT *
            FROM $this->_sTabla ;";
        $arTipodi = $this->query_object($sSQL);
//        var_dump($arSucursal['usuario'][0]['usucodsx']); //QUERY
//        var_dump($arSucursal[0]->usucodsx); //QUERY_OBJECT
        return $arTipodi;
    }

}

?>